import request from '@/utils/request'

export default {
    //删除视频
    deleteVideo(videoId){
        return request({
            url: `/vodService/video//removeVideo/${videoId}`,
            method: 'delete'
        })
    },

    //添加小节
    addVideo(video){
        return request({
            url: `/eduservice/study-video/addVideo`,
            method: 'post',
            data:video
        })
    },

    //修改小节
    updateVideo(video){
        return request({
            url: `/eduservice/study-video/updateVideo`,
            method: 'post',
            data:video
        })
    },

    //删除章节
    deleteChapter(id){
        return request({
            url: `/eduservice/study-video/deleteVideo/${id}`,
            method: 'delete'
        })
    },

    //根据id查询小节
    getVideoInfo(id) {
        return request({
            url: `/eduservice/study-video/getVideo/${id}`,
            method: 'get'
        })
    },


}